//
//  ProjectModel.m
//  NekaPrice
//
//  Created by yu on 2018/6/16.
//  Copyright © 2018年 ma c. All rights reserved.
//

#import "ProjectModel.h"

@implementation ProjectModel
+ (ProjectModel *)ModelWithDic:(NSDictionary *)dic {
    return [[ProjectModel alloc] initWithDic:dic];
}


- (instancetype)initWithDic:(NSDictionary *)dic {
    if (self = [super init]) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}

//为了取数据更好取, 转化
- (NSString *)pro_name {
    return _inv_name == nil ? _pro_name : _inv_name;
}

- (NSString *)pro_id {
    return _inv_id == nil ? _pro_id : _inv_id;
}

- (NSString *)pro_price {
    return _inv_price == nil ? _pro_price : _inv_price;
}

- (NSString *)pro_status {
    return _inv_status == nil ? _pro_status : _inv_status;
}





- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}
@end
